import request from '@/utils/request'

const api = {
    vipList: '/vip/detail',
    vipAdd: '/vip/add',
    vipEdit: '/vip/edit',
    vipPutaway: '/vip/putaway',
    vipDownfall: '/vip/downfall',
    vipDel: '/vip/delete'
}

export function vipDel (parameter) {
    return request({
        url: api.vipDel,
        method: 'get',
        params: parameter
    })
}

export function vipPutaway (parameter) {
    return request({
        url: api.vipPutaway,
        method: 'post',
        data: parameter
    })
}

export function vipDownfall (parameter) {
    return request({
        url: api.vipDownfall,
        method: 'post',
        data: parameter
    })
}

export function vipEdit (parameter) {
    return request({
        url: api.vipEdit,
        method: 'post',
        data: parameter
    })
}

export function vipAdd (parameter) {
    return request({
        url: api.vipAdd,
        method: 'post',
        data: parameter
    })
}

export function vipList (parameter) {
    return request({
        url: api.vipList,
        method: 'get',
        params: parameter
    })
}
